/*
 * @Descripttion:
 * @version: 1.0
 * @Author: 张泽涛
 * @LastEditors: 张泽涛
 * @LastEditTime: 2021-02-24 20:45:51
 */
export default {
  name: 'RouterLink',
  props: {
    to: {
      type: String,
      required: true
    }
  },
  // 处理创建的vue项目是 runtime版本的 只能用render不能用template
  // template: `<a :href="'#'+ this.to"><slot name="default"><slot/></a>`
  render (h) {
    return h('a', { attrs: { href: '#' + this.to } }, [this.$slots.default])
  }
}
